package com.itheima.edu.info.manager.controller;

import com.itheima.edu.info.manager.domain.Student;
import com.itheima.edu.info.manager.service.StudentService;

import java.util.Scanner;

/*
    客服类
    1.接收用户键盘录入的数据 ---用户请求
    2.找业务员完成具体的业务功能操作
    3.根据业务员的反馈结果,给未来用户相关的一个相应信息
 */
public class StudentController extends BaseStudentController{
    //键盘录入学生信息
    public Student gitStudetInfo(String id) {
        Student stu = new Student();
        System.out.println("请输入姓名:");
        String name = sc.next();
        System.out.println("请输入年龄:");
        String age = sc.next();
        System.out.println("请输入生日:");
        String birthday = sc.next();
        stu.setSid(id);
        stu.setName(name);
        stu.setAge(age);
        stu.setBirthday(birthday);
        return stu;
    }
}
